<template>
  <div class="panel-title" v-if="title">
    <span v-text="finalTitle"></span>
    <div class="fr">
      <!-- 理论上可以直接在这里获取当前选择目录 -->
      <slot></slot>
    </div>
  </div>
</template>
<script type="text/javascript">
  export default {
    data(){
      return {
        finalTitle:this.title||this.$route.meta.title
      }
    },
    props: {
      title: {
        type: String
      }
    }
  }
</script>
